import { App, Component } from "vue";

import wxjButton from "./components/wxjButton/index.vue";
import wxjLink from "./components/wxjLink/index.vue";
import wxjInput from "./components/wxjInput/index.vue";

import "./css/index.scss";

let obj = {
  wxjButton,
  wxjLink,
  wxjInput,
};

type type_obj = keyof typeof obj;

export default {
  install(app: App) {
    Object.keys(obj).forEach((key: string) => {
      app.component(key, obj[key as type_obj]);
    });
  },
};
